<!--p133，if-else练习-->
<!--由这个练习可以做一个计算器面板的练习-->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>


    </style>

    <script>
        function calc(){
            var score=document.myform.txtscore.value;
            var fee="及格";
            if(score<60){
                fee="不及格";
            }
            document.myform.txtlevel.value=fee;
        }
    </script>
</head>
<body>
    <section>
        <form name="myform" action="" method="get">
            <p><label for="">汇款金额：</label><input type="text" name="txtremit"/></p>
            <p><label for="">手续费：</label><input type="text" name="txtfee" readonly/></p>
            <p><label for="">成绩：</label><input type="text" name="txtscore"/></p>
            <p><label for="">档次：</label><input type="text" name="txtlevel"/></p>

            <p><input type="button" value="确定" onclick="calc()"></p>


        </form>

    </section>
    
</body>
</html>